{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "b106e8b1",
   "metadata": {},
   "source": [
    "## 通过课堂中所学到的if、eles、elif语法，可以尝试作出一个课表"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "5fe10666",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "课程表\n",
      "09：45-12:00 Python@新综612\n",
      "14:30-15:55 科学技术发展史\n",
      "16:10-17:35 英语@10-205\n"
     ]
    }
   ],
   "source": [
    "print(\"课程表\")\n",
    "\n",
    "import datetime\n",
    "time = datetime.datetime.today().weekday()\n",
    "week_time = int(time)\n",
    "\n",
    "\n",
    "if week_time==0:\n",
    "    print(\"10:35-12：00 羽毛球@东区体育馆\");\n",
    "    print(\"14:30-16:50 创业基础实践@1-401\");\n",
    "elif week_time==1:\n",
    "    print(\"10:35-12：00 英语@10-204\");\n",
    "    print(\"14:30-16:50 网站运营与管理@3实304\");\n",
    "elif week_time==2:\n",
    "    print(\"10:35-12：00 毛概实践@7-402\");\n",
    "    print(\"18:45-20:55 毛概理论@7-402\");\n",
    "elif week_time==3:\n",
    "    print(\"09：45-12:00 Python@新综612\");\n",
    "    print(\"14:30-15:55 科学技术发展史\");\n",
    "    print(\"16:10-17:35 英语@10-205\")\n",
    "elif week_time==4:\n",
    "    print(\"10:35-12:00 AI\");\n",
    "\n",
    "else:\n",
    "    print(\"IT IS WEEKEND!\");print(\"HAVE A FUN!\")"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": false,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": true
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
